package com.jingsheng.jingshengcity.mvp.ui.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.github.vipulasri.timelineview.TimelineView;
import com.jingsheng.jingshengcity.R;
import com.jingsheng.jingshengcity.mvp.model.entity.TimeLineEntity;
import com.jingsheng.jingshengcity.mvp.ui.holder.MyViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/5/9.
 */

public class LogisticsActivityAdapter extends BaseQuickAdapter<TimeLineEntity, MyViewHolder> {

    public LogisticsActivityAdapter(@LayoutRes int layoutResId, @Nullable List<TimeLineEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(MyViewHolder helper, TimeLineEntity item) {

        TimelineView marker = helper.getView(R.id.time_marker);
        if (item.getmStatus() == 0) {
        } else {
            marker.setMarker(ContextCompat.getDrawable(mContext, R.drawable.ic_marker));
        }

    }
}
